const routes = [
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/Home.vue'),
      children:[
        {
          path:'/home/shouye',
          name:'shouye',
          meta:{title:'店铺列表'},
          component:()=>import('../views/Shouye.vue')
        },
        {
          path:'/home/tuan',
          name:'tuan',
          meta:{title:'爆爆团'},
          component:()=>import('../views/One.vue')
        },
        {
          path:'/home/ding',
          name:'ding',
          meta:{title:'订单页'},
          component:()=>import('../views/Dingdan.vue')
        },
        {
          path:'/home/wude',
          name:'wude',
          meta:{title:'我的'},
          component:()=>import('../views/Wudezong.vue')
        },
        {
          path:'/home',
          redirect:'/home/shouye'
        },
        {
          path:'*',
          component:()=>import('../views/AboutView.vue')
        }
      ]
    },
    {
      path: '/denglu',
      name: 'denglu',
      meta:{title:'登录页'},
      component: () => import('../views/Deng-d.vue')
    },
    {
      path:'/zhuce',
      name:'zhuce',
      meta:{title:'注册页'},
      component:()=>import('../views/Zhuce.vue')
    },
    {
      path:'/xiangqing/:id',
      name:'xiang',
      meta:{title:'店铺详情'},
      component:()=>import('../views/Xiangqing')
    },
    {
      path:'/sousu',
      name:'sousu',
      meta:{title:'店铺搜索'},
      component:()=>import('../views/Sousu-dianpu.vue')

    },
    {
      path:'/',
      redirect:'/zhuce'
    },
    {
      path:'*',
      component:()=>import('../views/AboutView.vue')
    }
]

export default routes;